import request from '@/utils/request';

export function addMoodDiary(diary) {
    return request.post('/mood/add', diary);
}

export function deleteMoodDiary(diaryId) {
    return request.delete(`/mood/delete/${diaryId}`);
}

export function updateMoodDiary(diary) {
    return request.put('/mood/update', diary);
}

export function getMoodDiariesByUserId(userId) {
    return request.get(`/mood/user/${userId}`);
}
